Url(Action)

Transforms a URL to the format required by Sage CRM. You can use the returned URL to create a link in Sage CRM.

Parameters

Action. Specifies a URL, ASP file, or .NET DLL file and method. If it's an ASP file, custompages is prepended and the CRM context information is appended. You can also pass in an action string. Anything else returns the action untouched.

Examples

CRM.AddContent(CRM.Button("Chart","Cancel.gif",CRM.Url("system/InvChart.asp")));
Response.Write(CRM.GetPage());

Displays a button that links to an ASP page.

<a href='*<%=CRM.Url("http://www.mydomain.com")%>'>Click here to open the web site</a>

Creates an anchor that links to the specified web site.

myContainer.AddButton(CRM.Button(“Add”,”new.gif”,CRM.Url(“QuickLook.dll-RunQuickLook”)));

Creates a link that references the RunQuickLook base method of a .NET DLL(QuickLook.dll).